package com.zy.cat.entity.dev.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

import com.zy.cat.entity.dev.CatDevNewAddOrderHistory;
public interface CatDevNewAddOrderHistoryRepository extends JpaSpecificationExecutor<CatDevNewAddOrderHistory>,  JpaRepository<CatDevNewAddOrderHistory, String>{

	List<CatDevNewAddOrderHistory> findByPid(String pid);
	
	int countByPid(String pid);
	
	@Transactional
	void deleteByPid(String pid);
}
